package com.yy.QSManage.api.other;

import com.yy.QSManage.common.Result;
import com.yy.QSManage.service.other.table.TableToolService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api( tags = "表格工具接口")
@RequestMapping("/TableToolApi")
public class TableToolApi {

    @Autowired
    TableToolService tableToolService;

    @ApiImplicitParam(name = "表格名称", value = "tableName", required = true, dataType = "TaskScheduler", paramType = "path")
    @GetMapping("/tableCheck/{tableName}")
    public Result tableCheck(@PathVariable String tableName) {
        tableToolService.tableCheck(tableName);
        return Result.success();
    }

}
